package com.project.service;

import com.project.dto.BusinessDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * 商家远程调用接口
 */
@FeignClient(name = "business", url = "http://127.0.0.1:8881")
public interface IBusinessRemoteService {
    /**
     * 远程调用商家系统查询商家集合，并添加到数据库
     *
     * @return 商家集合
     */
    @GetMapping("/rider/findAllRiderInfo")
    List<BusinessDto> findAllByRemote();
}
